package com.aidong.carnival.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.aidong.carnival.dao.CarnivalDao;
import com.aidong.carnival.entity.Carnival;
import com.aidong.carnival.service.CarnivalService;

@Service
public class CarnivalServiceImpl implements CarnivalService {
	@Autowired
	private CarnivalDao carnivalDao;

	@Override
	public Carnival config() {
		Carnival config = new Carnival();
		config.setPomp(carnivalDao.pomp());
		config.setDescription(carnivalDao.description());
		config.setRule(carnivalDao.rule());
		config.setTalent(carnivalDao.talent());
		config.setTraining(carnivalDao.training());
		config.setZero(carnivalDao.zero());
		config.setPompList(carnivalDao.pompList());
		config.setTraining(carnivalDao.training());
		config.setHomeBg(carnivalDao.homeBg());
		config.setHomeNv(carnivalDao.homeNv());
		config.setDraw(carnivalDao.draw());
		config.setLuckyDraw(carnivalDao.luckyDraw());
		return config;
	}
}
